package com.itheima.prameter;

public class MethodDemo2 {
    public static void main(String[] args) {
       //引用数据类型传递，传递的是地址值
        int[] arr = {1,2,3};
        change(arr);
        System.out.println(arr[0]);
    }
    public static void change(int[] arr){
        System.out.println(arr[0]);
        arr[0] = 100;
        System.out.println(arr[0]);
    }
}
